package com.arcbbs.enums;

public enum SysSettingCodeEnum {
    AUDIT("audit","com.arcbbs.entity.SystemSettingAduitDto","systemSettingAduitDto","审核设置"),
    COMMENT("comment","com.arcbbs.entity.SystemSettingCommentDto","systemSettingCommentDto","评论设置"),
    POST("post","com.arcbbs.entity.SystemSettingPostDto","systemSettingPostDto","审核设置"),
    LIKE("like","com.arcbbs.entity.SystemSettingLikeDto","systemSettingLikeDto","点赞设置"),
    REGISTER("register","com.arcbbs.entity.SystemSettingRegisterDto","systemSettingRegisterDto","注册设置"),
    EMAIL("email","com.arcbbs.entity.SystemSettingEmailDto","systemSettingEmailDto","邮件设置");


    private String code;
    private String classz;
    private String propName;
    private String desc;
    SysSettingCodeEnum(String code,String classz,String propName,String desc){
        this.code=code;
        this.classz=classz;
        this.propName=propName;
        this.desc=desc;
    }
    public static SysSettingCodeEnum getByCode(String code){
        for (SysSettingCodeEnum item:SysSettingCodeEnum.values()){
            if(item.getCode().equals(code)){
                return item;
            }
        }
        return null;

    }

    public String getCode() {
        return code;
    }

    public String getClassz() {
        return classz;
    }

    public String getPropName() {
        return propName;
    }

    public String getDesc() {
        return desc;
    }
}
